package com.jiyinit.web.core.common.vo;

import com.jiyinit.web.core.business.entity.TabCoreUserEntity;

import java.util.Set;

/**
 * <p></p>
 * <p>
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author zhaolaiwei
 * @version 1.0
 * @date 2017/4/12 9:20
 * @since 1.0
 */
public class CurrentUserVo {
    /**
     * ID
     */
    private Integer userId;

    /**
     * 登录名
     */
    private String loginName;

    /**
     * 机购ID
     */
    private Integer orgId;

    /**
     * 名称
     */
    private String userName;

    /**
     * 用户url权限集合
     */
    private Set<String> urlSet;

    public CurrentUserVo(){

    }

    public CurrentUserVo(TabCoreUserEntity tabCoreUserEntity){
        this.userId = tabCoreUserEntity.getUserId();
        this.loginName = tabCoreUserEntity.getLoginName();
        this.orgId = tabCoreUserEntity.getOrgId();
        this.userName = tabCoreUserEntity.getUserName();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Set<String> getUrlSet() {
        return urlSet;
    }

    public void setUrlSet(Set<String> urlSet) {
        this.urlSet = urlSet;
    }
}
